<template>
	<div class="root">
		<h3>{{poi.name}}</h3>
		<div class="weather">
			<div class="left">
				<p>{{wea.temperature}}</p>
				<p>{{wea.description}}</p>
			</div>
			<div class="right">
				<img class="wea-img" :src="wea.image_hash|imgFil"/>
			</div>
		</div>
		<input class="search"/>
		<div class="hot-search">
			<span v-for="w in hot">{{w.word}}</span>
		</div>
	
	</div>
</template>

<script>
	
	import {imgFil} from "../util/filters.js";
	
	export default {
		props:["poi","wea","hot"],
		filters:{
			imgFil
		}
	}
</script>

<style scoped>
	h3{
		margin: 0;
		width: 60%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.root{
		background-color: #0096FF;
		padding: 10px;
	}
	
	.weather{
		width: 10rem;
		height: 3rem;
		display: flex;
	}
	
	.wea-img{
		width: 2.8rem;
		height: 2.8rem;
	}
	
	.search{
		border: none;
		height: 40px;
		width: 100%;
		border-radius: 20px;
		text-align: center;
		font-size: 26px;
	}
	
	.hot-search{
		font-size: 1.2rem;
		white-space: nowrap;
		overflow: scroll;
	}
	
	.hot-search span{
		display: inline-block;
		margin: 0 5px;
		
	}
	
</style>